<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>CSS字体，颜色和文本属性 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="./Bootstrap.html" />
    
    
    <link rel="prev" href="./CSS样式.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.1"
        data-chapter-title="CSS字体，颜色和文本属性"
        data-filepath="CSS字体，颜色和文本属性.md"
        data-basepath="."
        data-revision="Fri Sep 01 2017 15:57:44 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="./index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="CSS选择符.html">
            
                
                    <a href="./CSS选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        CSS选择符
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="CSS的www.html">
            
                
                    <a href="./CSS的www.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        CSS的www
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="CSS的引入.html">
            
                
                    <a href="./CSS的引入.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        CSS的引入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="ID及class选择符.html">
            
                
                    <a href="./ID及class选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        ID及class选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="关系选择符.html">
            
                
                    <a href="./关系选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        关系选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="群组选择符.html">
            
                
                    <a href="./群组选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        群组选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="伪对象选择符.html">
            
                
                    <a href="./伪对象选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        伪对象选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="伪类选择符.html">
            
                
                    <a href="./伪类选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        伪类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="属性选择符.html">
            
                
                    <a href="./属性选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="CSS样式.html">
            
                
                    <a href="./CSS样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS样式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.1" data-path="CSS字体，颜色和文本属性.html">
            
                
                    <a href="./CSS字体，颜色和文本属性.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS字体，颜色和文本属性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="Bootstrap.html">
            
                
                    <a href="./Bootstrap.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        Bootstrap
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="./" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>font</td>
<td>&#x5B57;&#x4F53;</td>
<td>&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#xFF0C;&#x53EF;&#x4EE5;&#x5305;&#x542B;&#x6240;&#x6709;&#x5B57;&#x4F53;&#x5C5E;&#x6027;&#x7684;&#x58F0;&#x660E;&#x503C;</td>
</tr>
<tr>
<td>color</td>
<td>&#x989C;&#x8272;</td>
<td>&#x5B57;&#x4F53;&#x989C;&#x8272;</td>
</tr>
<tr>
<td>font-family</td>
<td>&#x5B57;&#x4F53;</td>
<td>&#x5B57;&#x4F53;&#x7C7B;&#x578B;</td>
</tr>
<tr>
<td>font-style</td>
<td>&#x5B57;&#x4F53;</td>
<td>&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#xFF0C;&#x5305;&#x62EC;&#xFF1A;normal&#x3001;italic&#xFF08;&#x659C;&#x4F53;&#xFF09;&#x3001;oblique&#xFF08;&#x503E;&#x659C;&#xFF09;</td>
</tr>
<tr>
<td>font-variant</td>
<td>&#x5B57;&#x4F53;</td>
<td>&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x5199;&#xFF0C;&#x5305;&#x62EC;&#xFF1A;normal&#x3001;small-caps&#xFF08;&#x5C0F;&#x578B;&#x7684;&#x5927;&#x5199;&#x5B57;&#x6BCD;&#x5B57;&#x4F53;&#xFF09;</td>
</tr>
<tr>
<td>font-weight</td>
<td>&#x5B57;&#x4F53;</td>
<td>&#x5B57;&#x4F53;&#x7C97;&#x7EC6;</td>
</tr>
<tr>
<td>font-size</td>
<td>&#x5B57;&#x4F53;</td>
<td>&#x5B57;&#x4F53;&#x5927;&#x5C0F;</td>
</tr>
<tr>
<td>word-spacing</td>
<td>&#x6587;&#x672C;</td>
<td>&#x8BCD;&#x95F4;&#x8DDD;</td>
</tr>
<tr>
<td>letter-spacing</td>
<td>&#x6587;&#x672C;</td>
<td>&#x5B57;&#x7B26;&#x95F4;&#x8DDD;</td>
</tr>
<tr>
<td>text-decoration</td>
<td>&#x6587;&#x672C;</td>
<td>&#x6587;&#x672C;&#x4FEE;&#x9970;&#x7EBF;&#xFF0C;&#x5305;&#x62EC;&#xFF1A;none&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF09;&#x3001;blink&#xFF08;&#x95EA;&#x70C1;&#xFF09;&#x3001;underline&#xFF08;&#x4E0B;&#x5212;&#x7EBF;&#xFF09;&#x3001;line-through&#xFF08;&#x4E2D;&#x5212;&#x7EBF;&#xFF09;&#x3001;overline&#xFF08;&#x4E0A;&#x5212;&#x7EBF;&#xFF09;</td>
</tr>
<tr>
<td>vertical-align</td>
<td>&#x6587;&#x672C;</td>
<td>&#x6587;&#x672C;&#x5782;&#x76F4;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;&#xFF0C;&#x5305;&#x62EC;&#xFF1A;baseline&#x3001;sub&#x3001;supper&#x3001;top&#x3001;text-top&#x3001;middle&#x3001;bottom&#x3001;text-bottom&#x3001;length</td>
</tr>
<tr>
<td>text-transform</td>
<td>&#x6587;&#x672C;</td>
<td>&#x6587;&#x672C;&#x5927;&#x5C0F;&#x5199;&#xFF0C;&#x5305;&#x62EC;&#xFF1A;none&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF09;&#x3001;capitalize&#xFF08;&#x9996;&#x5B57;&#x6BCD;&#x5927;&#x5199;&#xFF09;&#x3001;uppercase&#xFF08;&#x5927;&#x5199;&#xFF09;&#x3001;lowercase&#xFF08;&#x5C0F;&#x5199;&#xFF09;</td>
</tr>
<tr>
<td>text-align</td>
<td>&#x6587;&#x672C;</td>
<td>&#x6587;&#x672C;&#x7684;&#x6C34;&#x5E73;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;&#xFF0C;&#x5305;&#x62EC;&#xFF1A;left&#x3001;right&#x3001;center&#x3001;justify&#xFF08;&#x4E24;&#x7AEF;&#x5BF9;&#x9F50;&#xFF09;</td>
</tr>
<tr>
<td>text-indent</td>
<td>&#x6587;&#x672C;</td>
<td>&#x9996;&#x884C;&#x7F29;&#x8FDB;</td>
</tr>
<tr>
<td>line-height</td>
<td>&#x6587;&#x672C;</td>
<td>&#x884C;&#x9AD8;</td>
</tr>
<tr>
<td>text-shadow</td>
<td>&#x6587;&#x672C;</td>
<td>&#x6587;&#x672C;&#x9634;&#x5F71;&#x6216;&#x6A21;&#x7CCA;&#x6548;&#x679C;(text-shadow: -0.1em 0.1em #CCCCCC;)</td>
</tr>
</tbody>
</table>
<blockquote>
<p>(baseline)&#x9ED8;&#x8BA4;&#x3002;&#x5143;&#x7D20;&#x653E;&#x7F6E;&#x5728;&#x7236;&#x5143;&#x7D20;&#x7684;&#x57FA;&#x7EBF;&#x4E0A;
 (sub)&#x5782;&#x76F4;&#x5BF9;&#x9F50;&#x6587;&#x672C;&#x7684;&#x4E0B;&#x6807;
(super)&#x5782;&#x76F4;&#x5BF9;&#x9F50;&#x6587;&#x672C;&#x7684;&#x4E0A;&#x6807;
(top)    &#x628A;&#x5143;&#x7D20;&#x7684;&#x9876;&#x7AEF;&#x4E0E;&#x884C;&#x4E2D;&#x6700;&#x9AD8;&#x5143;&#x7D20;&#x7684;&#x9876;&#x7AEF;&#x5BF9;&#x9F50;
(text-top)&#x628A;&#x5143;&#x7D20;&#x7684;&#x9876;&#x7AEF;&#x4E0E;&#x7236;&#x5143;&#x7D20;&#x5B57;&#x4F53;&#x7684;&#x9876;&#x7AEF;&#x5BF9;&#x9F50;
(middle)&#x628A;&#x6B64;&#x5143;&#x7D20;&#x653E;&#x7F6E;&#x5728;&#x7236;&#x5143;&#x7D20;&#x7684;&#x4E2D;&#x90E8;&#x3002;
(bottom)&#x628A;&#x5143;&#x7D20;&#x7684;&#x9876;&#x7AEF;&#x4E0E;&#x884C;&#x4E2D;&#x6700;&#x4F4E;&#x7684;&#x5143;&#x7D20;&#x7684;&#x9876;&#x7AEF;&#x5BF9;&#x9F50;&#x3002;
(text-bottom)&#x628A;&#x5143;&#x7D20;&#x7684;&#x5E95;&#x7AEF;&#x4E0E;&#x7236;&#x5143;&#x7D20;&#x5B57;&#x4F53;&#x7684;&#x5E95;&#x7AEF;&#x5BF9;&#x9F50;</p>
</blockquote>
<p><img src="E/book/sys.jpg" alt="Alt text"></p>
<h6 id="&#x6587;&#x5B57;&#x989C;&#x8272;">&#x6587;&#x5B57;&#x989C;&#x8272;</h6>
<ul>
<li>color: blue;(&#x82F1;&#x6587;&#x5355;&#x8BCD;)</li>
<li>color: #0000FF;(&#x5341;&#x516D;&#x8FDB;&#x5236;)</li>
<li>color: rgb(0,0,255);(RGB&#x6A21;&#x5F0F;)</li>
</ul>
<blockquote>
<p>&#x767D;&#x8272;&#xFF1A; rgb(255,255,255)
&#x9ED1;&#x8272;&#xFF1A; rbg(0,0,0)
&#x7EA2;&#x8272;&#xFF1A; rgb(255,0,0)
&#x7EFF;&#x8272;&#xFF1A; rgb(0,255,0)
&#x84DD;&#x8272;: rgb(0,0,255)
&#x9752;&#x8272;&#xFF1A; rgb(0,255,255)
&#x7D2B;&#x8272;&#xFF1A; rgb(255.0.255)</p>
</blockquote>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="./CSS样式.html" class="navigation navigation-prev " aria-label="Previous page: CSS样式"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="./Bootstrap.html" class="navigation navigation-next " aria-label="Next page: Bootstrap"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
